import request from '@/utils/request'

// 查询商户信息总表管理列表
export function listRestaurant(query) {
  return request({
    url: '/business/restaurant/list',
    method: 'get',
    params: query
  })
}

// 查询商户信息总表管理详细
export function getRestaurant(restaurantid) {
  return request({
    url: '/business/restaurant/' + restaurantid,
    method: 'get'
  })
}

// 新增商户信息总表管理
export function addRestaurant(data) {
  return request({
    url: '/business/restaurant',
    method: 'post',
    data: data
  })
}

// 修改商户信息总表管理
export function updateRestaurant(data) {
  return request({
    url: '/business/restaurant',
    method: 'put',
    data: data
  })
}

// 删除商户信息总表管理
export function delRestaurant(restaurantid) {
  return request({
    url: '/business/restaurant/' + restaurantid,
    method: 'delete'
  })
}
